import axios from '@/utils/axios'

// 查询床位信息
export const queryRoomBedAPI = () => {
  return axios.post('/api/dor/dor-client/cms/dormBed/queryDormBed')
}

// 新增床位信息
export const addRoomBedAPI = (data) => {
  return axios.post('/api/dor/dor-client/cms/dormBed/insert', data, {
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

// 编辑床位信息
export const updateRoomBedAPI = (data) => {
  return axios.post('/api/dor/dor-client/cms/dormBed/update', data, {
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

// 删除床位信息
export const deleteRoomBedAPI = (id) => {
  return axios.post(`/api/dor/dor-client/cms/dormBed/delete?id=${id}`, {}, {
    headers: {
      'Content-Type': 'application/json'
    }
  })
}